﻿<?php 
define('IN_QY',true);
session_start();
require("include/common.inc.php");
define('SCRIPT','ad_list');

?>

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>技能专区-众晒网</title>
        <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
        <meta content="yes" name="apple-mobile-web-app-capable"/>
        <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
        <meta content="telephone=no" name="format-detection"/>
        <link href="/ui/xianzhi/css/style.css" rel="stylesheet" type="text/css"/>
        <script type="text/javascript" src="/ui/xianzhi/js/jquery.min.js"></script>
        <script type="text/javascript" src="/ui/xianzhi/js/slider.js"></script>
        <script type="text/javascript" src="/ui/xianzhi/js/tab.js"></script>
        <style type="text/css">
            body{background: #f3f3f3;}
            li {list-style: none;list-style-image: url(/ui/image/dian1.png);}
            .aui-search-box {background: #ffffff;}
            .aui-palace.clearfix {background: #ffffff;}
            .aui-order-product {background: #ffffff;margin-top: 5px;}
        </style>
    </head>
    <body>
        <section class="aui-flexView">
            <header class="aui-navBar aui-navBar-fixed">
                <a href="javascript:history.back(-1);" class="aui-navBar-item">
                    <i class="icon icon-return"></i>
                </a>
                <div class="aui-center">
                    <span class="aui-center-title">技能专区</span>
                </div>
                <a href="javascript:;" class="aui-navBar-item">
                    <i class="icon icon-dinwei1"></i>
                 无锡
                </a>
            </header>
            <section class="aui-scrollView">
                <div class="aui-search-box">
                    <div onclick="javascript:location.href='jinengserach.php'" class="aui-search-bg">
                        <i class="icon icon-search"></i>
                        <input type="text" placeholder="搜索">
                    </div>
                </div>

                <div class="aui-palace clearfix" style="padding: 2px 0;">
                    <a href="jinenglist.php?fd=1" class="aui-palace-grid">
                        <div class="aui-palace-grid-icon">
                            <img src="/ui/image/清洗消毒@3x.png" alt="">
                        </div>
                        <div class="aui-palace-grid-text">
                            <h2>保洁清洗</h2>
                        </div>
                    </a>
                    <a href="jinenglist.php?fd=2" class="aui-palace-grid">
                        <div class="aui-palace-grid-icon">
                            <img src="/ui/image/专业保姆@3x.png" alt="">
                        </div>
                        <div class="aui-palace-grid-text">
                            <h2>保姆月嫂</h2>
                        </div>
                    </a>
                    <a href="jinenglist.php?fd=3" class="aui-palace-grid">
                        <div class="aui-palace-grid-icon">
                            <img src="/ui/image/产后恢复@3x.png" alt="">
                        </div>
                        <div class="aui-palace-grid-text">
                            <h2>产后母婴</h2>
                        </div>
                    </a>
                    <a href="jinenglist.php?fd=4" class="aui-palace-grid">
                        <div class="aui-palace-grid-icon">
                            <img src="/ui/image/咨询@3x.png" alt="">
                        </div>
                        <div class="aui-palace-grid-text">
                            <h2>专业咨询</h2>
                        </div>
                    </a>
                    <a href="jinenglist.php?fd=5" class="aui-palace-grid">
                        <div class="aui-palace-grid-icon">
                            <img src="/ui/image/洗护用品@3x.png" alt="">
                        </div>
                        <div class="aui-palace-grid-text">
                            <h2>手工零玩</h2>
                        </div>
                    </a>
                    <a href="jinenglist.php?fd=6" class="aui-palace-grid">
                        <div class="aui-palace-grid-icon">
                            <img src="/ui/image/按摩室@3x.png" alt="">
                        </div>
                        <div class="aui-palace-grid-text">
                            <h2>小儿推拿</h2>
                        </div>
                    </a>
                    <a href="jinenglist.php?fd=7" class="aui-palace-grid">
                        <div class="aui-palace-grid-icon">
                            <img src="/ui/image/美容@3x.png" alt="">
                        </div>
                        <div class="aui-palace-grid-text">
                            <h2>美容美甲</h2>
                        </div>
                    </a>
                    <a href="jinenglist.php?fd=8" class="aui-palace-grid">
                        <div class="aui-palace-grid-icon">
                            <img src="/ui/image/学习@3x.png" alt="">
                        </div>
                        <div class="aui-palace-grid-text">
                            <h2>兴趣教学</h2>
                        </div>
                    </a>
                </div>
				
                  <div class="aui-atlas-img">
					<span>
                    <img src="/ui/image/组21@3x.png" alt="" style="width: 95%;margin-left: 5px;">
                    </span>
                    <span>
                     <img src="/ui/image/组22@3x.png" alt="" style="width: 95%;margin-left: 5px;">
                    </span>
                    <span>
                    <img src="/ui/image/组23@3x.png" alt="" style="width: 95%;margin-left: 5px;">
                     </span>
                    </div>	
					
	<?
$reslut = "select count(*) as a from tbl_skill_details where  status=0 ";
$query_reslut = mysql_query($reslut);
$row_reslut=mysql_fetch_array($query_reslut);
$count=$row_reslut['a'];
//页面数量
$page_size=10;
//总页数
$page_count = ceil($count/$page_size);
//第几页
$page=$_GET['page'];
if($page==''){
  $page=1;
}
$last=$page-1;//上一页
$next=$page+1;//下一页

//页面起始条数
$offset=$page_size*($page-1);
	  		    
	$sql = "select * from tbl_skill_details where  status=0  ORDER by id DESC LIMIT $offset,$page_size";
	$query=mysql_query($sql);
							if(!mysql_affected_rows()){
            echo '
			    <div class="H-padding-vertical-bottom-10"></div>
				
    <div class="H-channel-title H-flexbox-horizontal H-theme-background-color-white H-vertical-middle H-border-vertical-bottom-after">
        <div class="H-channel-line H-theme-background-color8 H-padding-vertical-top-15 H-padding-horizontal-left-3  H-margin-horizontal-left-10"></div>
        <div class="H-channel-text H-theme-font-color8 H-flex-item H-font-size-18 H-theme-font-color-black H-padding-10 H-margin-horizontal-right-10 H-text-show-row-1">暂无商品</div>
    </div>
	</br></br>
			';
}

	while($row=mysql_fetch_array($query))
	{	
		$imgeve =explode(",", $row['pics']);


	?>
					
                <div class="aui-order-product" onclick="javascript:location.href='jinengxq.php?id=<?=$row['id']?>'">
                    <div class="aui-order-product-hd"">
                        <img src="<?=$imgeve[0]?>" alt="">

                    </div>
                   
                    <div class="aui-order-product-bd">
                        <h2><?=$row['title']?>&nbsp;
						
						<?php if($row['is_business']==0){ ?>
						
						<img src="/ui/image/ge.png" alt="" style="width: 10px;">
						
						<?php } ?>	
						
						<?php if($row['is_business']==1){ ?>
						
						<img src="/ui/image/shang.png" alt="" style="width: 10px;">
						
						<?php } ?>							
						
                             <span class="aui-order-text-bd" style="float:right;">
                             
                         <?php
					    $sqluyy = "SELECT DISTINCT * from tbl_skill_catgroy  where id='".$row['cat_id']."' ";
                        $queryuyy=mysql_query($sqluyy);
                        $rowuyy=mysql_fetch_array($queryuyy);

                          ?>
                               
                           <?=$rowuyy['cat_name']?>  
                    </span>
                        </h2>
                        <p><?=$row['details']?> </p>
                        <div class="aui-order-text">
                            <span class="aui-order-text-hd" style="font-size: 19px;color: red;">￥<?=$row['price']?>
                            </span>
                            <span class="aui-order-text-bd" style="float:right;">
						     <ul style="font-size: 12px;color: #7d7c78; list-style: disc; padding: auto;">

                                <li>服务经验:
								<?php if($row['service_age_range']==0){ ?>
								1-2年
	                            <?php } ?>
								<?php if($row['service_age_range']==1){ ?>
								3-5年 
	                            <?php } ?>
								<?php if($row['service_age_range']==2){ ?>
								5-7年 
	                            <?php } ?>
								<?php if($row['service_age_range']==3){ ?>
								7-10年
	                            <?php } ?>
								<?php if($row['service_age_range']==4){ ?>
								10年以上
	                            <?php } ?>							
								</li>
								
                                <li>
								服务年龄段:
								<?php if($row['age_range']==0){ ?>
								
								0-6个月
	                            <?php } ?>	
								
								<?php if($row['age_range']==1){ ?>
								6-12个月
	                            <?php } ?>
								
								<?php if($row['age_range']==2){ ?>
								1-3岁
	                            <?php } ?>
							
								<?php if($row['age_range']==3){ ?>
								4-8岁
	                            <?php } ?>								
								
							    </li>
                               
                             </ul>
                            </span>
                        </div>
						<div class="aui-order-service-hd">
					     <?php
					    $sqluyo = "SELECT DISTINCT * from tbl_user  where id='".$row['uid']."' ";
                        $queryuyo=mysql_query($sqluyo);
                        $rowuyo=mysql_fetch_array($queryuyo);

                          ?>						
											
                <img src="<?=$rowuyo['username']?>" alt="" style="width:5%">
                       <?=$rowuyo['shuyu']?>
                    </div>
                    </div>
                </div>

		<?php } ?>	
<div style="margin-top:10px;">  </div>
    <?php

    if($page==1){   
	if($page_count>$page){
		
	echo "<a href='?page=".$next."'  style='text-decoration:none; width: 47px;border: 1px solid;border-radius: 5px; border-style: -6px; padding: 5px;color: #fc8b4a;'>下一页</a>&nbsp;&nbsp;&nbsp;";	
	
	}
   }else
    if($page==$page_count){
      echo "&nbsp;&nbsp;<a href='?page=".$last."' style='text-decoration:none; width: 47px;border: 1px solid;border-radius: 5px; border-style: -6px; padding: 5px;color: #fc8b4a;'>上一页</a>&nbsp;&nbsp;&nbsp;";
    }else{
      echo "&nbsp;&nbsp;<a href='?page=".$last."' style='text-decoration:none; width: 47px;border: 1px solid;border-radius: 5px; border-style: -6px; padding: 5px;color: #fc8b4a;'>上一页</a>&nbsp;&nbsp;&nbsp;";
      echo "<a href='?page=".$next."' style='text-decoration:none; width: 47px;border: 1px solid;border-radius: 5px; border-style: -6px; padding: 5px;color: #fc8b4a;'>下一页</a>&nbsp;&nbsp;&nbsp;"; 
    }
  ?>		
            </section>

        </section>
    </body>
</html>
